package com.example.guet_assistant.mapper;

import com.example.guet_assistant.pojo.entity.Tool;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【tool】的数据库操作Mapper
* @createDate 2024-11-03 15:54:17
* @Entity com.example.guet_assistant.pojo.entity.Tool
*/
public interface ToolMapper extends BaseMapper<Tool> {

    @Select("select  tool.* from  tool  join  common_tool on common_tool.tool_id=tool.id  where  common_tool.user_id=#{userId}")
    List<Tool> getUserTools(Long userId);



}




